# $NetBSD: Makefile,v 1.13 2012/09/24 16:56:38 asau Exp $

DISTNAME=	ArgoUML-0.34
PKGNAME=	argouml-0.34
CATEGORIES=	devel
MASTER_SITES=	http://argouml-downloads.tigris.org/nonav/argouml-0.34/
LICENSE=	epl-v1.0

MAINTAINER=	hdp@cs.nmsu.edu
HOMEPAGE=	http://argouml.tigris.org/
COMMENT=	UML design tool environment with cognitive support

#DEPENDS+=	xerces-j>=1.4.4:../../textproc/xerces-j
DEPENDS+=	xerces-j>=1.2.0:../../textproc/xerces-j
DEPENDS+=	jakarta-log4j-1.3a>=8:../../wip/jakarta-log4j

USE_JAVA=	run
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PKGNAME}

do-configure:
	${SED} -e 's|@PREFIX@|${PREFIX}|g' \
		-e 's:@JAVA_HOME@:${PKG_JAVA_HOME}:g' \
		-e 's:@ARGO_HOME@:${PREFIX}/lib/java/argouml:g' \
		${FILESDIR}/argouml > ${WRKSRC}/argouml

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/java/argouml
	cd ${WRKSRC} && for f in `ls *.jar`; \
	do \
		${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/lib/java/argouml; \
	done
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/argouml ${DESTDIR}${PREFIX}/bin/

.include "../../mk/java-vm.mk"
.include "../../x11/libX11/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"
